import { defineStore } from "pinia";

export const useTalkStore = defineStore('talk',{
  state(){
    return{
      // talkList:[
      //   {id:'0001',title:'今天你有点怪，怪好看的'},
      //   {id:'0002',title:'心里给你留了一块地'},
      //   {id:'0003',title:'我爱你'},
      //   {id:'0004',title:'5291314'},
      // ]
      talkList:JSON.parse(localStorage.getItem('talkList') as string) || []
    }
  }
})